package com.dongdong.bookstore.module.cms.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.dongdong.bookstore.security.model.CustomUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author chiangkai
 * @since 2021-10-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="会员表")
public class User extends CustomUser implements Serializable {

    private static final long serialVersionUID=1L;

//    @ApiModelProperty(value = "ID 主键ID")
//    @TableId(value = "id", type = IdType.AUTO)
//    private Long id;

    @ApiModelProperty(value = "用户手机")
    private String tel;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "用户头像")
    private String headImg;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

//    @ApiModelProperty(value = "用户账号")
//    private String username;

//    @ApiModelProperty(value = "用户密码")
//    private String password;

//    @ApiModelProperty(value = "账号状态 0->禁用1->启用")
//    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "逻辑删除 1删除0未删除")
    @TableLogic
    private Integer deleted;


}
